<div class="loginHeader">
				<%@page import="enums.Privilege"%>
				<%
					String privilege = (String) session.getAttribute("privilege");
					String myname = (String) session.getAttribute("username");
					String tournament = (String) session.getAttribute("tournament");
					
					if (myname == null) {
						%>
						<button class="modalInput" rel="#login">Login</button>&nbsp;&nbsp;|
						<%@include file="/JSP/public/login.jsp" %>
						<button class="modalInput" rel="#signUp">Registrarse</button>
						<%@include file="/JSP/user/signUp.jsp" %><%
			   			
					} else if (privilege.equalsIgnoreCase(Privilege.ADMINISTRADOR.getValue())
							|| privilege.equalsIgnoreCase(Privilege.USERADMIN.getValue())) {
							%> Bienvenido, <%=myname%> &nbsp;&nbsp;&bull;&nbsp;&nbsp; 
								<%if (tournament== null){%>
									<a href="JSP/tournament/newTournament.jsp">Crear torneo</a>	&nbsp;&nbsp;&bull;&nbsp;&nbsp; 	
									
								<%}else{%>
									<a href="TournamentManager?action=TOURNAMENTPAGE">Tu torneo</a> &nbsp;&nbsp;&bull;&nbsp;&nbsp; 
									
								<%}%>
							<a href="UserManager?action=USERPROFILE" rel="#overlay">Tu perfil</a>&nbsp;&nbsp;&bull;&nbsp;&nbsp; 
						
							<a href="Logout">Logout</a>&nbsp;&nbsp;&nbsp;&nbsp; <%
							
 					} else if (privilege.equalsIgnoreCase(Privilege.CAPTAIN.getValue())) {
 							%> Bienvenido, <%=myname%> &nbsp;&nbsp;&bull;&nbsp;&nbsp; <a
							href="profileTeam">Tu equipo</a> &nbsp;&nbsp;&bull;&nbsp;&nbsp; <a
							href="profileUser">Tu perfil</a> &nbsp;&nbsp;&bull;&nbsp;&nbsp; <a
							href="Logout">Logout</a> &nbsp;&nbsp;&nbsp;&nbsp; <%
							
 					} else {
 							%> Bienvenido, <%=myname%> &nbsp;&nbsp;&bull;&nbsp;&nbsp; 
 							<a href="profileUser">Tu perfil</a> &nbsp;&nbsp;&bull;&nbsp;&nbsp; 
 							<a href="Logout">Logout</a> &nbsp;&nbsp;&nbsp;&nbsp; <%
 	}
 %>
 
			
				<div class="apple_overlay" id="overlay">
				<div class="contentWrap"></div>
				</div>	
</div>


 